﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ParentProfile.aspx.vb" Inherits="CommunityWebsiteProject.ParentProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <p>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1" BackColor="White" 
            BorderColor="#3366CC" BorderStyle="Solid" BorderWidth="1px" CellPadding="4">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="LastName" 
                SortExpression="LastName" />
            <asp:BoundField DataField="Location" HeaderText="Location" 
                SortExpression="Location" />
            <asp:BoundField DataField="EmailAddress" HeaderText="EmailAddress" 
                SortExpression="EmailAddress" />
            <asp:BoundField DataField="Telephone" HeaderText="Telephone" 
                SortExpression="Telephone" />
            <asp:BoundField DataField="SubjectRequest" HeaderText="SubjectRequest" 
                SortExpression="SubjectRequest" />
            <asp:BoundField DataField="TuteeID" HeaderText="TuteeID" 
                SortExpression="TuteeID" />
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TutorsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:TutorsConnectionString.ProviderName %>" 
        
            SelectCommand="SELECT [ID], [Title], [FirstName], [LastName], [Location], [EmailAddress], [Telephone], [SubjectRequest], [TuteeID] FROM [tblParents] WHERE ([TuteeID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="TuteeID" QueryStringField="TuteeID" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
    <p>
        <asp:Button ID="btnAcceptRequest" runat="server" Text="Accept Request" />
</p>
</asp:Content>
